*** Settings ***
Library    OperatingSystem
Library    BuiltIn

*** Variables ***
${BMC_IP}       76.76.16.93
${BMC_USER}     Administrator
${BMC_PASS}     Admin@90000
${IPMI_PORT}    623

*** Test Cases ***
Test IPMI Device ID With Auth
    [Documentation]    带认证的IPMI设备ID测试
    [Tags]  Ipmi_Sample
    ${cmd}=    Set Variable    ipmitool -H ${BMC_IP} -U ${BMC_USER} -P ${BMC_PASS} -p ${IPMI_PORT} -C 17 -I lanplus raw 0x06 0x01
    ${rc}  ${output}=  Run And Return Rc And Output  ${cmd}
    Log    Command Output: ${output}
    Should Be Equal As Integers    ${rc}    0
    Should Contain    ${output}   00 00 01    # 制造商代码